package development.bean;

public class ChatMessage {
  private String fromUser = "";
  private StringBuffer message = new StringBuffer();

  public String getFromUser() {
    return fromUser;
  }

  public ChatMessage setFromUser(String fromUser1) {
    this.fromUser = fromUser1;
    return this;
  }

  public String getMessage() {
    return message.toString();
  }

  public ChatMessage setMessage(String message1) {
    this.message.setLength(0);
    this.message.append(message1);
    return this;
  }
  
  public ChatMessage appendMessage(String message1) {
    this.message.append(message1);
    return this;
  }
}
